package com.niguang.work.api.controller;


import com.niguang.common.pojo.Result;
import com.niguang.work.api.service.ReformApplyService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.validation.constraints.NotNull;

/**
 * <p>
 * 'work.v_personSite' is not BASE TABLE 前端控制器
 * </p>
 *
 * @author 12380
 * @since 2018-09-06
 */
@RestController
@RequestMapping("/api/reformApply/")
public class ReformApplyController {

    @Resource
    private ReformApplyService reformApplyService;

    /**
     * 问题详情
     *
     * @param contentId
     * @return
     */
    @GetMapping("getApplyDetails")
    public Result getApplyDetails(@NotNull @RequestParam Long contentId) {
        return reformApplyService.getApplyDetails(contentId);

    }

    /**
     * 问题详情---html
     *
     * @param contentId
     * @return
     */
    @GetMapping("getApplyDetailsHtml")
    public Result getApplyDetailsHtml(@NotNull @RequestParam Long contentId) {
        return reformApplyService.getApplyDetailsHtml(contentId);

    }


}

